//package com.example.controller;
//
//import com.alibaba.fastjson.JSON;
//import com.alibaba.fastjson.JSONArray;
//import com.example.bean.crm.cgdd;
//import com.example.bean.crm.cgddmx;
//import com.example.service.k3Service.k3Service;
//import com.example.service.crmService.crmService;
//import com.example.utils.k3Api;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.math.BigDecimal;
//import java.util.ArrayList;
//import java.util.Map;
//
///**
// * 采购订单
// * Created by tony on 2017/12/15.
// */
//@Component
//@RestController
//public class cgddControl {
//    private final Logger logger = LoggerFactory.getLogger(this.getClass());
//    //定义k3Service
//    @Autowired
//    private k3Service k3Service;
//    //定义mesService
//    @Autowired
//    private crmService crmService;
//    public String token = "";
//
//    /**
//     * 获取Token
//     */
//    public boolean GetToken() {
//        k3Api k3Api = new k3Api();
//        String getTokenResult = k3Api.getToken();
//        //解析结果
//        Map result = (Map) JSON.parse(getTokenResult);
//        if (result.get("StatusCode").toString().equals("200")) {
//            Map data = (Map) JSON.parse(result.get("Data").toString());
//            //设置token值
//            token = data.get("Token").toString();
//            logger.info("Token取得成功，token值：" + token);
//            return true;
//        } else {
//            logger.info("Token取得失败，请检查网络");
//            return false;
//        }
//    }
//    /**
//     * 取得中间表采购信息，生成销售订单
//     */
//    @RequestMapping("/So")
//    //@Scheduled(cron = "0 0/5 * * * ?") //每5执行一次
//    public void insertSoScheduled() {
//        logger.info("销售订单更新。开始……");
//        try{
//            //取得要处理的销售订单
//            ArrayList<cgdd> cgddList=crmService.selectCgdd();
//            //遍历销售订单
//            for(cgdd cgdd:cgddList){
//                //是否已存入erp
//                String erpFlg = cgdd.getERPxsddbh();
//                //更新
//                if (erpFlg == null ||erpFlg.isEmpty() ||erpFlg.equals("")) {
//                    //新增
//                    insertSo(cgdd);
//                } else {
//                    //CRM订单状态 1正常，2删除
//                    int crmddzt=cgdd.getCrmddzt();
//                    if(crmddzt==2){
//                       deleteSo(cgdd);
//                    }
//                }
//            }
//        }catch (Exception e){
//            logger.info(e.getMessage());
//        }
//        logger.info("销售订单更新。结束……");
//    }
//    @RequestMapping("/updateCrmSo")
//    //@Scheduled(cron = "0 0/5 * * * ?") //每5执行一次
//    public void updateCrmSo() {
//
//        logger.info("CRM采购订单订单更新。开始……");
//        try{
//            //取得要处理的销售订单
//            ArrayList<cgdd> cgddList=k3Service.selectSo();
//            //遍历销售订单
//            for(cgdd cgdd:cgddList){
//                crmService.cggdFlagRturn(cgdd);
//            }
//        }catch (Exception e){
//            logger.info(e.getMessage());
//        }
//        logger.info("CRM采购订单订单更新。结束……");
//    }
//    /**
//     * 删除erp中销售订单
//     */
//    @RequestMapping("/deleteSo")
//    public void deleteSo(cgdd cgdd) {
//        if (GetToken()) {
//            //new
//            k3Api k3Api = new k3Api();
//            //操作url
//            String operation = "SO/Delete";
//            try {
//                //param
//                String param = "{" +
//                        "  \"Data\": {" +
//                        "    \"FBillNo\": \""+cgdd.getERPxsddbh()+"\"" +
//                        "  }" +
//                        "}";
//                //解析结果
//                Map result = (Map) JSON.parse(k3Api.callK3Api(operation, token, param));
//                logger.info(result.toString());
//                if (result.get("StatusCode").toString().equals("200")) {
//                    //已经成功添加
//                    cgdd.setClyf(2);
//                    //返回信息
//                    cgdd.setRtnInfo("删除成功！");
//
//                } else {
//                    //添加失败
//                    cgdd.setClyf(3);
//                    //返回信息
//                    cgdd.setRtnInfo(result.get("Message").toString());
//                }
//
//            }catch(Exception e){
//                logger.error(e.getMessage());
//                //异常
//                cgdd.setClyf(3);
//                //返回信息
//                cgdd.setRtnInfo("异常操作，请联系管理员");
//            }
//            crmService.cggdFlagRturn(cgdd);
//        }
//    }
//    /**
//     * erp中插入销售订单
//     */
//    @RequestMapping("/insertSo")
//    public void insertSo(cgdd cgdd) {
//        if (GetToken()) {
//            //new
//            k3Api k3Api = new k3Api();
//            //操作url
//            String operation = "SO/Save";
//            try {
//                //采购订单id
//                String cgddId = cgdd.getCgddID();
//                //部门
//                String bumen = cgdd.getBumen();
//                Map<String, String> FDept = k3Service.selectBm(bumen);
//                //部门编号
//                String bumenNumber = FDept.get("FNumber");
//                //是否排产
//                int sfpc = cgdd.getSfpc();
//                String sfpcbianma;
//                String sfpcname;
//                if (sfpc == 1) {
//                    sfpcbianma = "Y";
//                    sfpcname = "是";
//                } else {
//                    sfpcbianma = "N";
//                    sfpcname = "否";
//                }
//                //核算项目
//                String hsxmdaima = cgdd.getHsxmdaima();
//                String hsxmname = cgdd.getHsxmname();
//                //物流路线
//                String wllx = cgdd.getWllx();
//                //销售种类
//                String xszl = cgdd.getXszl();
//                //汇率类型
//                String hllx = cgdd.getHllx();
//                //币别
//                String bibie = cgdd.getBibie();
//                //整单折扣率
//                BigDecimal zdzkl = cgdd.getZdzkl();
//                //整单折扣额
//                BigDecimal zdzke = cgdd.getZdzke();
//                //平台用户
//                String ptyh = cgdd.getPtyh();
//                //收货地点
//                String shdd = cgdd.getShdd();
//                //摘要
//                String zhaiyao = cgdd.getZhaiyao();
//                //日期
//                String  riqi = cgdd.getRiqi();
//                //运输提前期
//                int ystqq = cgdd.getYstqq();
//                //制单人代码
//                String zdrdaima = cgdd.getZdrdaima();
//                //制单人名字
//                String zdrname = cgdd.getZdrname();
//                //审核人代码
//                String shrdaima = cgdd.getShrdaima();
//                //审核人人名字
//                String shrname = cgdd.getShrname();
//                //param
//                String param = "{" +
//                        "  \"Data\": {" +
//                        "    \"Page1\": [" +
//                        "      {" +
//                        "        \"FCancellation\": \"\"," +
//                        "        \"FClassTypeID\": \"\"," +
//                        "        \"FEnterpriseID\": \"\"," +
//                        "        \"FHeadSelfS0152\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \""+xszl+"\"" +
//                        "        }," +
//                        "        \"FHeadSelfS0153\": \"\"," +
//                        "        \"FHeadSelfS0154\": \"\"," +
//                        "        \"FHeadSelfS0155\": \""+ptyh+"\"," +
//                        "        \"FHeadSelfS0159\": {" +
//                        "          \"FNumber\": \""+sfpcbianma+"\"," +
//                        "          \"FName\": \""+sfpcname+"\"" +
//                        "        }," +
//                        "        \"FHeadSelfS0160\": \"\"," +
//                        "        \"FHeadSelfS0161\": \"\"," +
//                        "        \"FHeadSelfS0163\": \"\"," +
//                        "        \"FHeadSelfS0164\": \""+wllx+"\"," +
//                        "        \"FHeadSelfS0167\": \""+cgddId+"\"," +
//                        "        \"FSendStatus\": \"\"," +
//                        "        \"FStatus\": \"\"," +
//                        "        \"Fdate\": \""+riqi+"\"," +
//                        "        \"FCustID\": {" +
//                        "          \"FNumber\": \""+hsxmdaima+"\"," +
//                        "          \"FName\": \""+hsxmname+"\"" +
//                        "        }," +
//                        "        \"FSettleDate\": \"\"," +
//                        "        \"FImport\": \"\"," +
//                        "        \"FAreaPS\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"购销\"" +
//                        "        }," +
//                        "        \"FSettleID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FRelateBrID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FPOOrdBillNo\": \"\"," +
//                        "        \"FSaleStyle\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FTransitAheadTime\": \""+ystqq+"\"," +
//                        "        \"FBrID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FTranType\": \"\"," +
//                        "        \"FFetchStyle\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FFetchAdd\": \""+shdd+"\"," +
//                        "        \"FExplanation\": \""+zhaiyao+"\"," +
//                        "        \"FCurrencyID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \""+bibie+"\"" +
//                        "        }," +
//                        "        \"FSelTranType\": \"\"," +
//                        "        \"FSelBillNo\": \"\"," +
//                        "        \"FExchangeRate\": \"\"," +
//                        "        \"FBillNo\": \"\"," +
//                        "        \"FMultiCheckStatus\": \"\"," +
//                        "        \"FExchangeRateType\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \""+hllx+"\"" +
//                        "        }," +
//                        "        \"FPlanCategory\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FCheckerID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FCheckDate\": \"\"," +
//                        "        \"FDeptID\": {" +
//                        "          \"FNumber\": \""+bumenNumber+"\"," +
//                        "          \"FName\": \""+bumen+"\"" +
//                        "        }," +
//                        "        \"FEmpID\": {" +
//                        "          \"FNumber\": \""+shrdaima+"\"," +
//                        "          \"FName\": \""+shrname+"\"" +
//                        "        }," +
//                        "        \"FMangerID\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FBillerID\": {" +
//                        "          \"FNumber\": \""+zdrdaima+"\"," +
//                        "          \"FName\": \""+zdrname+"\"" +
//                        "        }," +
//                        "        \"FManageType\": \"\"," +
//                        "        \"FValidaterName\": \"\"," +
//                        "        \"FSysStatus\": \"\"," +
//                        "        \"FConsignee\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FVersionNo\": \"\"," +
//                        "        \"FChangeDate\": \"\"," +
//                        "        \"FChangeUser\": {" +
//                        "          \"FNumber\": \"\"," +
//                        "          \"FName\": \"\"" +
//                        "        }," +
//                        "        \"FChangeCauses\": \"\"," +
//                        "        \"FChangeMark\": \"\"" +
//                        "      }" +
//                        "    ]," +
//                        "    \"Page2\": [" + danJuTi(cgddId) +
//                        "    ]" +
//                        "  }" +
//                        "}";
//                //解析结果
//                Map result = (Map) JSON.parse(k3Api.callK3Api(operation, token, param));
//                logger.info(result.toString());
//                if (result.get("StatusCode").toString().equals("200")) {
//                    //已经成功添加
//                    cgdd.setClyf(2);
//                    JSONArray jsonArray = JSONArray.parseArray(result.get("Data").toString());
//                    Map information =jsonArray.getJSONObject(0);
//                    //返回erpid
//                    cgdd.setERPxsddbh(information.get("FBillNo").toString());
//                    //返回信息
//                    cgdd.setRtnInfo("添加成功！");
//                    //插入整单折扣率和折扣额
//                    k3Service.updateSo(cgdd);
//                } else {
//                    //添加失败
//                    cgdd.setClyf(3);
//                    //返回信息
//                    cgdd.setRtnInfo(result.get("Message").toString());
//                }
//
//            }catch(Exception e){
//                logger.error(e.getMessage());
//                //异常
//                cgdd.setClyf(3);
//                //返回信息
//                cgdd.setRtnInfo("异常操作，请联系管理员");
//            }
//            crmService.cggdFlagRturn(cgdd);
//        }
//    }
//    /**
//     * erp中更新销售订单
//     */
////    @RequestMapping("/updateSo")
////    public void updateSo(cgdd cgdd) {
////        if (GetToken()) {
////            //new
////            k3Api k3Api = new k3Api();
////            //操作url
////            String operation = "SO/Update";
////            try {
////                //erp销售编号
////                String ERPxsddbh = cgdd.getERPxsddbh();
////                //采购订单id
////                String cgddId = cgdd.getCgddID();
////                //部门
////                String bumen = cgdd.getBumen();
////                Map<String, String> FDept = k3Service.selectBm(bumen);
////                //部门编号
////                String bumenNumber = FDept.get("FNumber");
////                //是否排产
////                int sfpc = cgdd.getSfpc();
////                String sfpcbianma;
////                String sfpcname;
////                if (sfpc == 1) {
////                    sfpcbianma = "Y";
////                    sfpcname = "是";
////                } else {
////                    sfpcbianma = "N";
////                    sfpcname = "否";
////                }
////                //核算项目
////                String hsxmdaima = cgdd.getHsxmdaima();
////                String hsxmname = cgdd.getHsxmname();
////                //物流路线
////                String wllx = cgdd.getWllx();
////                //销售种类
////                String xszl = cgdd.getXszl();
////                //汇率类型
////                String hllx = cgdd.getHllx();
////                //币别
////                String bibie = cgdd.getBibie();
////                //整单折扣率
////                BigDecimal zdzkl = cgdd.getZdzkl();
////                //整单折扣额
////                BigDecimal zdzke = cgdd.getZdzke();
////                //平台用户
////                String ptyh = cgdd.getPtyh();
////                //收货地点
////                String shdd = cgdd.getShdd();
////                //摘要
////                String zhaiyao = cgdd.getZhaiyao();
////                //日期
////                Date date = cgdd.getDate();
////                //运输提前期
////                int ystqq = cgdd.getYstqq();
////                //制单人代码
////                String zdrdaima = cgdd.getZdrdaima();
////                //制单人名字
////                String zdrname = cgdd.getZdrname();
////                //审核人代码
////                String shrdaima = cgdd.getShrdaima();
////                //审核人人名字
////                String shrname = cgdd.getShrname();
////                //param
////                String param = "{  " +
////                        "\"FBillNo\": \"" + ERPxsddbh + "\"," +
////                        "  \"Data\": {" +
////                        "    \"Page1\": [" +
////                        "      {" +
////                        "        \"FCancellation\": \"\"," +
////                        "        \"FClassTypeID\": \"\"," +
////                        "        \"FEnterpriseID\": \"\"," +
////                        "        \"FHeadSelfS0152\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FHeadSelfS0153\": \"\"," +
////                        "        \"FHeadSelfS0154\": \"\"," +
////                        "        \"FHeadSelfS0155\": \"" + ptyh + "\"," +
////                        "        \"FHeadSelfS0159\": {" +
////                        "          \"FNumber\": \"" + sfpcbianma + "\"," +
////                        "          \"FName\": \"" + sfpcname + "\"" +
////                        "        }," +
////                        "        \"FHeadSelfS0160\": \"\"," +
////                        "        \"FHeadSelfS0161\": \"\"," +
////                        "        \"FHeadSelfS0163\": \"\"," +
////                        "        \"FHeadSelfS0164\": \"" + wllx + "\"," +
////                        "        \"FSendStatus\": \"\"," +
////                        "        \"FStatus\": \"\"," +
////                        "        \"Fdate\": \"" + date + "\"," +
////                        "        \"FCustID\": {" +
////                        "          \"FNumber\": \"" + hsxmdaima + "\"," +
////                        "          \"FName\": \"" + hsxmname + "\"" +
////                        "        }," +
////                        "        \"FSettleDate\": \"\"," +
////                        "        \"FImport\": \"\"," +
////                        "        \"FAreaPS\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FSettleID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FRelateBrID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FPOOrdBillNo\": \"\"," +
////                        "        \"FSaleStyle\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FTransitAheadTime\": \"" + ystqq + "\"," +
////                        "        \"FBrID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FTranType\": \"\"," +
////                        "        \"FFetchStyle\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FFetchAdd\": \"" + shdd + "\"," +
////                        "        \"FExplanation\": \"" + zhaiyao + "\"," +
////                        "        \"FCurrencyID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FSelTranType\": \"\"," +
////                        "        \"FSelBillNo\": \"\"," +
////                        "        \"FExchangeRate\": \"\"," +
////                        "        \"FBillNo\": \"\"," +
////                        "        \"FMultiCheckStatus\": \"\"," +
////                        "        \"FExchangeRateType\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FPlanCategory\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FCheckerID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FCheckDate\": \"\"," +
////                        "        \"FDeptID\": {" +
////                        "          \"FNumber\": \"" + bumenNumber + "\"," +
////                        "          \"FName\": \"" + bumen + "\"" +
////                        "        }," +
////                        "        \"FEmpID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FMangerID\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FBillerID\": {" +
////                        "          \"FNumber\": \"" + zdrdaima + "\"," +
////                        "          \"FName\": \"" + zdrname + "\"" +
////                        "        }," +
////                        "        \"FManageType\": \"\"," +
////                        "        \"FValidaterName\": \"\"," +
////                        "        \"FSysStatus\": \"\"," +
////                        "        \"FConsignee\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FVersionNo\": \"\"," +
////                        "        \"FChangeDate\": \"\"," +
////                        "        \"FChangeUser\": {" +
////                        "          \"FNumber\": \"\"," +
////                        "          \"FName\": \"\"" +
////                        "        }," +
////                        "        \"FChangeCauses\": \"\"," +
////                        "        \"FChangeMark\": \"\"" +
////                        "      }" +
////                        "    ]," +
////                        "    \"Page2\": [" + danJuTi(cgddId) +
////                        "    ]" +
////                        "  }" +
////                        "}";
////                //解析结果
////                Map result = (Map) JSON.parse(k3Api.callK3Api(operation, token, param));
////                logger.info(result.toString());
////                if (result.get("StatusCode").toString().equals("200")) {
////                    //已经成功添加
////                    cgdd.setClyf(2);
////                    //返回信息
////                    cgdd.setRtnInfo("更新成功！");
////                    //插入整单折扣率和折扣额
////                    k3Service.updateSo(cgdd);
////                } else {
////                    //添加失败
////                    cgdd.setClyf(3);
////                    //返回信息
////                    cgdd.setRtnInfo(result.get("Message").toString());
////                }
////
////            } catch (Exception e) {
////                logger.error(e.getMessage());
////                //异常
////                cgdd.setClyf(3);
////                //返回信息
////                cgdd.setRtnInfo("异常操作，请联系管理员");
////            }
////            crmService.cggdFlagRturn(cgdd);
////        }
////    }
//    /**
//     * 单据体拼接
//     */
//    public String danJuTi(String cgddId) {
//        //单据体
//        String danJuTiString="";
//        //取得销售订单明细
//        ArrayList<cgddmx> cgddmxList=crmService.selectCgddmx(cgddId);
//        int count=0;
//        for(cgddmx cgddmx:cgddmxList){
//            if(count==0){
//                danJuTiString=danJuTi2(cgddmx);
//            }else
//            {
//                danJuTiString=danJuTiString+","+danJuTi2(cgddmx);
//            }
//            count++;
//        }
//        return danJuTiString;
//    }
//    /**
//     * 单据体拼接2
//     */
//    public String danJuTi2(cgddmx cgddmx) {
//        //客户编号
//        String cgddmxid=cgddmx.getCgddmxID();
//        //客户编号
//        String khbh=cgddmx.getKhbh();
//        //客户名称
//        String khmc=cgddmx.getKhmc();
//        //产品代码
//        String cpdm=cgddmx.getCpdm();
//        //产品名称
//        String cpmc=cgddmx.getCpmc();
//        //规格型号
//        String ggxh=cgddmx.getGgxh();
//        //整机型号
//        String zjxh=cgddmx.getZjxh();
//        //备注
//        String beizhu=cgddmx.getBeizhu();
//        //数量
//        int shuliang=cgddmx.getShuliang();
//        //计量单位
//        String jldwName=cgddmx.getJldw();
//        Map<String, String> Unit= k3Service.selectUnit(jldwName);
//        String jldwFnumber=Unit.get("Fnumber");
//        //建议交货日期
//        String jyjhrq=cgddmx.getJyjhrq();
//        //含税单价
//        BigDecimal hsdj=cgddmx.getHsdj();
//        //折扣备注
//        String zkbz=cgddmx.getZkbz();
//        //金额（不含税金额）
//        BigDecimal jine=cgddmx.getJine();
//        //折扣率
//        BigDecimal zkl=cgddmx.getZkl();
//        //实际含税金额
//        BigDecimal sjhsje=cgddmx.getSjhsje();
//        //价格合计
//        BigDecimal jghj=cgddmx.getJghj();
//        //网销出厂价（电商出厂价）
//        BigDecimal wxccj=cgddmx.getWxccj();
//        //交货日期
//        String  jhrq=cgddmx.getJhrq();
//        String danJuTiString="{" +
//                "        \"FEntryID2\": \"\"," +
//                "        \"FATPDeduct\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FEntrySelfS0166\": \"\"," +
//                "        \"FEntrySelfS0167\": \""+zjxh+"\"," +
//                "        \"FEntrySelfS0171\": \""+zkbz+"\"," +
//                "        \"FEntrySelfS0172\": \"\"," +
//                "        \"FEntrySelfS0173\": \"\"," +
//                "        \"FEntrySelfS0174\": \"\"," +
//                "        \"FEntrySelfS0175\": \"\"," +
//                "        \"FEntrySelfS0176\": \"\"," +
//                "        \"FEntrySelfS0179\": \"\"," +
//                "        \"FEntrySelfS0180\": \""+wxccj+"\"," +
//                "        \"FEntrySelfS0181\": \""+cgddmxid+"\"," +
//                "        \"FOutSourceEntryID\": \"\"," +
//                "        \"FOutSourceInterID\": \"\"," +
//                "        \"FOutSourceTranType\": \"\"," +
//                "        \"FMapNumber\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FMapName\": \"\"," +
//                "        \"FItemID\": {" +
//                "          \"FNumber\": \""+cpdm+"\"," +
//                "          \"FName\": \""+cpmc+"\"" +
//                "        }," +
//                "        \"FItemName\": \"\"," +
//                "        \"FItemModel\": \""+ggxh+"\"," +
//                "        \"FAuxPropID\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FBaseUnit\": \"\"," +
//                "        \"FQty\": \""+shuliang+"\"," +
//                "        \"FUnitID\": {" +
//                "          \"FNumber\": \""+jldwFnumber+"\"," +
//                "          \"FName\": \""+jldwName+"\"" +
//                "        }," +
//                "        \"Fauxqty\": \""+shuliang+"\"," +
//                "        \"FSecUnitID\": \"\"," +
//                "        \"FSecCoefficient\": \"\"," +
//                "        \"FSecQty\": \"\"," +
//                "        \"Fauxprice\": \"\"," +
//                "        \"FAuxTaxPrice\": \""+hsdj+"\"," +
//                "        \"Famount\": \""+jine+"\"," +
//                "        \"FCess\": \"\"," +
//                "        \"FTaxRate\": \""+zkl+"\"," +
//                "        \"FUniDiscount\": \"\"," +
//                "        \"FTaxAmount\": \"\"," +
//                "        \"FAuxPriceDiscount\": \""+sjhsje+"\"," +
//                "        \"FTaxAmt\": \"\"," +
//                "        \"FAllAmount\": \""+jghj+"\"," +
//                "        \"FTranLeadTime\": \"\"," +
//                "        \"FInForecast\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FDate1\": \""+jhrq+"\"," +
//                "        \"Fnote\": \""+beizhu+"\"," +
//                "        \"FCommitQty\": \"\"," +
//                "        \"FAuxCommitQty\": \"\"," +
//                "        \"FSecCommitQty\": \"\"," +
//                "        \"FSecStockQty\": \"\"," +
//                "        \"FStockQty\": \"\"," +
//                "        \"FAuxStockQty\": \"\"," +
//                "        \"FPlanMode\": {" +
//                "          \"FNumber\": \"MTS\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FMTONo\": \"\"," +
//                "        \"FBomInterID\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FCostObjectID\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FAdviceConsignDate\":\""+jyjhrq+"\"," +
//                "        \"FLockFlag\": \"\"," +
//                "        \"FSourceBillNo\": \"\"," +
//                "        \"FBOMCategory\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FSourceTranType\": \"\"," +
//                "        \"FOrderBOMInterID\": \"\"," +
//                "        \"FSourceInterId\": \"\"," +
//                "        \"FSourceEntryID\": \"\"," +
//                "        \"FOrderBOMStatus\": {" +
//                "          \"FNumber\": \"\"," +
//                "          \"FName\": \"\"" +
//                "        }," +
//                "        \"FContractBillNo\": \"\"," +
//                "        \"FContractInterID\": \"\"," +
//                "        \"FContractEntryID\": \"\"," +
//                "        \"FAuxQtyInvoice\": \"\"," +
//                "        \"FSecInvoiceQty\": \"\"," +
//                "        \"FQtyInvoice\": \"\"," +
//                "        \"FSecCommitInstall\": \"\"," +
//                "        \"FCommitInstall\": \"\"," +
//                "        \"FAuxCommitInstall\": \"\"," +
//                "        \"FAuxPropCls\": \"\"," +
//                "        \"FAllStdAmount\": \"\"," +
//                "        \"FMrpLockFlag\": \"\"," +
//                "        \"FHaveMrp\": \"\"," +
//                "        \"FReceiveAmountFor_Commit\": \"\"," +
//                "        \"FOrderBillNo\": \"\"," +
//                "        \"FOrderEntryID\": \"\"" +
//                "      }";
//        return danJuTiString;
//
//    }
//}
